package com.zzx.schoolfellow.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.lang.NonNull;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ChatMessageDTO {
    private Long id;
    @NonNull
    private String sender;
    @NonNull
    private String receiver;
    @NonNull
    private String content;
    @NonNull
    private LocalDateTime createTime;
    private Boolean isRead;

}
